package com.codrim.cs.data.server.dao.entity;

import com.codrim.cs.data.rpc.dto.result.TopOfferConversionResultDTO;

import lombok.Data;

/**
 * @author Liang.Zhuge
 * @date 17/10/2017
 */
@Data
public class TopOfferConversionDO {
    private Integer offerId;
    private Long conversion;

    public TopOfferConversionResultDTO toDto() {
        TopOfferConversionResultDTO dto = new TopOfferConversionResultDTO();
        dto.setOfferId(offerId);
        dto.setConversion(conversion);
        return dto;
    }
}
